package com.sys.db.util;

import java.util.HashMap;
import java.util.Hashtable;

public class ThreadArray {
	private static final HashMap<Integer, Thread> ht=new HashMap<Integer, Thread>();
	public static void addThread(int id,Thread thread){
		ht.put(id, thread);
	}
	public static void moveThread(int id){
		Thread t=ht.get(id);
		if(t!=null){
			ht.remove(id);
		}
	}
	public static Thread getThread(int id){
		Thread t=ht.get(id);
		return t;
	}
}
